//package com.dream.technology.engin.buildFlowContext;
//
//import com.dream.technology.components.FlowService.FlowProcessService;
//import com.dream.technology.components.context.FlowContext;
//import com.dream.technology.db.entity.OrderBorrowingForm;
//import com.dream.technology.db.entity.RcFlow;
//import com.dream.technology.fegin.ApiClient;
//import com.dream.technology.fegin.CreditInnerClient;
//import com.dream.technology.framework.data.GenericRspDTO;
//import com.dream.technology.service.RcFlowService;
//import com.dream.technology.zycashLog.Console;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.ActiveProfiles;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import java.math.BigDecimal;
//import java.util.Map;
//
///**
// * 描述：
// *
// * @author chen_q_i@163.com
// * 2019/1/14 : 15:54.
// * @version : 1.0
// */
//@ActiveProfiles("dev")
//@RunWith(SpringRunner.class)
//@SpringBootTest
//public class BuildFlowContext {
//
//    @Autowired
//    FlowProcessService flowProcessService;
//
//    @Autowired
//    private RcFlowService rcFlowService;
//
//    @Autowired
//    private ApiClient apiClient;
//    @Autowired
//    private CreditInnerClient creditInnerClient;
//
//    @Test
//    public void testEx() {
//        OrderBorrowingForm orderBorrowingForm = new OrderBorrowingForm();
//        orderBorrowingForm.setCustomerId(16L);
//        orderBorrowingForm.setBorrowingCapital(new BigDecimal("2"));
//        FlowContext flowContext = flowProcessService.buildFlowContext(orderBorrowingForm);
//        GenericRspDTO<Map<String, String>> mapGenericRspDTO = apiClient.loaderModelByProCodeModuleAndName("merchantProduct20190107175345", "WhiteKnight", "白骑士");
//        Map<String, String> body = mapGenericRspDTO.getBody();
//
//        flowProcessService.prepareThirdParty(flowContext, "baiQiShiLogLoginSever");
////        Console.info("dfasd{}","测试");
//    }
//
//    @Test
//    public void getFlow() {
//
//        RcFlow aaaa = rcFlowService.getFlowByPlatform("aaaa");
//
//    }
//
//    @Test
//    public void userInfo() {
//
//        GenericRspDTO<Map<String, Object>> personAllInfo = creditInnerClient.getPersonAllInfo(16L);
//
//        Console.info("a------{}", personAllInfo.getBody());
//    }
//
//
//}
